package com.lry.basic.juc;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.LongAdder;

//lambda, ConcurrentHashMap todo
public class TestConcurrentHashMap {

    public static void main(String[] args) {

        ConcurrentHashMap<String,String> map = new ConcurrentHashMap<>(1);

        map.put("a","a");
        map.put("b","b");
        map.put("c","c");

        map.compute("d",(x,y)-> x+"s"+y);



        System.out.println(map.get("d"));

    }

}

